package com.itheima.map;

import java.util.LinkedHashMap;
import java.util.Map;
import java.util.function.BiConsumer;

public class MapDemo05 {
    public static void main(String[] args) {
        Map<Student,String> map = new LinkedHashMap<>();
        map.put(new Student("01","张三",90.8),"安徽");
        map.put(new Student("01","李四",95),"河南");
        map.put(new Student("02","王五",95.6),"河南");
        map.put(new Student("03","赵六",95.6),"河南");
        map.forEach((k,v) ->System.out.println(k+"，来自："+v));

    }
}
